home *** CD-ROM | disk | FTP | other *** search
ASP.NET Web Form | 2002-03-17 | 1.6 KB | 37 lines |
- <%@ Page Language="vb" AutoEventWireup="false" Codebehind="SimpleControlsForm.aspx.vb" Inherits="DataBinding.WebForm1" %>
- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
- <HTML>
- <HEAD>
- <title>WebForm1</title>
- <meta content="Microsoft Visual Studio.NET 7.0" name="GENERATOR">
- <meta content="Visual Basic 7.0" name="CODE_LANGUAGE">
- <meta content="JavaScript" name="vs_defaultClientScript">
- <meta content="http://schemas.microsoft.com/intellisense/ie5" name="vs_targetSchema">
- </HEAD>
- <body>
- <form id="Form1" method="post" runat="server">
- <H1>Two-way Data Binding Demo</H1>
- <P>This page shows how you can simulate two-way data binding. Select a record from
- the topmost DropDownList control, edit the values of the fields, and click
- the Save Values button to update the database. The updated is performed by
- creating a custom Command object.</P>
- <P> </P>
- <P><STRONG>Select a Title:
- <asp:dropdownlist id="ddlTitles" runat="server" Width="356px" AutoPostBack="True"></asp:dropdownlist></P>
- <HR width="100%" noShade SIZE="2">
- <P>Title:
- <asp:textbox id="txtTitle" runat="server" Width="243px"></asp:textbox></P>
- <P>Price:
- <asp:textbox id="txtPrice" runat="server" Width="93px"></asp:textbox></P>
- <P>Type:
- <asp:textbox id="txtType" runat="server"></asp:textbox></P>
- <P>Publisher:
- <asp:dropdownlist id="ddlPublishers" runat="server" Width="226px"></asp:dropdownlist></P>
- </STRONG>
- <P><asp:button id="btnSave" runat="server" Text="Save Values"></asp:button></P>
- <P>
- </form>
- </P>
- </body>
- </HTML>
-